import request from '../request.js'

// 获取菜单 //consumer/dish/page
export function getMenu(data) {
  return request.request({
      url: `/api/Passenger/add_user_passenger`,
      data: data,
      method: 'POST'
  })
}


//登入
export function getlogin(data) {
  return request.request({
      url: `/api/index/sign_in`,
      data: data,
      method: 'POST'
  })
}

//客源数据
export function passengersourcedata(data) {
  return request.request({
      url: `/api/Passenger/get_user_passenger`,
      data: data,
      method: 'POST'
  })
}

//客源跟进
export function getfollowup(data) {
  return request.request({
      url: `/api/Passenger/get_passenger_info`,
      data: data,
      method: 'POST'
  })
}

//邀约客源
export function getoffer(data) {
  return request.request({
      url: `/api/Passenger/add_invitation_user`,
      data: data,
      method: 'POST'
  })
}

// 获取配套设施数据
export function getPtSS() {
  return request.request({
      url: `/api/Facilities/index`,
      method: 'POST'
  })
}

// 获取待核实客源
export function getawaitverify(data) {
  return request.request({
      url: `/api/Passenger/not_verify_passenger_list`,
      data: data,
      method: 'POST'
  })
}
// 客源核实
export function getverify(data) {
  return request.request({
      url: `/api/Passenger/verify_passenger`,
      data: data,
      method: 'POST'
  })
}

// 获取房源列表（二手房）
export function gethouselist(data) {
  return request.request({
      url: `/api/RoomSource/get_house_list`,
      data: data,
      method: 'POST'
  })
}

// 获取未核实房源信息ft
export function getunexamined(data) {
  return request.request({
      url: `/api/RoomSource/not_verify_house_list`,
      data: data,
      method: 'POST'
  })
}

// 获取核实房源
export function getexamined(data) {
  return request.request({
      url: `/api/house/agent_audit_house`,
      data: data,
      method: 'POST'
  })
}

// 取消邀约f
export function getdeloffer(data) {
  return request.request({
      url: `/api/Passenger/cancel_invitation`,
      data: data,
      method: 'POST'
  })
}


// 带看记录
export function gettakelook(data) {
  return request.request({
      url: `/api/Passenger/get_follow_up_list`,
      data: data,
      method: 'POST'
  })
}

// 添加跟进记录
export function getaddrecord(data) {
  return request.request({
      url: `/api/Passenger/add_follow_up_log`,
      data: data,
      method: 'POST'
  })
}

// 添加跟进记录
export function getaddrecordldd(data) {
  return request.request({
      url: `/api/Passenger/add_follow_up`,
      data: data,
      method: 'POST'
  })
}

// 跟进记录列表
export function getaddrecordlist(data) {
  return request.request({
      url: `/api/Passenger/follow_up_log_list`,
      data: data,
      method: 'POST'
  })
}

// 获取个人中心
export function getme(data) {
  return request.request({
      url: `/api/index/get_user_info`,
      data: data,
      method: 'POST'
  })
}




// 保安列表
export function getpolicelist(data) {
  return request.request({
      url: `/api/SecurityStaff/agent_list`,
      data: data,
      method: 'POST'
  })
}


// 上传文件
export function uploadfiles(data) {
  return request.request({
      url: `/api/UploadFile/index`,
      data: data,
      method: 'POST'
  })
}


// 获取搜索筛选参数
export function getselect(data) {
  return request.request({
      url: `/api/SearchCriteria/lists`,
      data: data,
      method: 'POST'
  })
}

// 房源标签 
export function getlabel(data) {
  return request.request({
      url: `/api/HouseTags/lists`,
      data: data,
      method: 'POST'
  })
}

// 完善保存房源(上传)
export function getfinishhouse(data) {
  return request.request({
      url: `/api/house/agent_save_house`,
      data: data,
      method: 'POST'
  })
}

// 获取小区
export function gethousing(data) {
  return request.request({
      url: `/api/Community/agent_community`,
      data: data,
      method: 'POST'
  })
}

// 获取需要完善房源信息
export function gethousefinish(data) {
  return request.request({
      url: `/api/RoomSource/not_verify_house_detail`,
      data: data,
      method: 'POST'
  })
}


//重置密码
export function ressetpassword(data) {
  return request.request({
      url: `/api/index/change_pwd`,
      data: data,
      method: 'POST'
  })
}

// 获取今日带看记录
export function gettodaylist(data) {
  return request.request({
      url: `/api/Passenger/get_follow_up_list_date`,
      data: data,
      method: 'POST'
  })
}

//审核房源
export function toaudit(data) {
  return request.request({
      url: `/api/house/agent_house_audit_list`,
      data: data,
      method: 'POST'
  })
}

//审核房源
export function getaudithouse(data) {
  return request.request({
      url: `/api/house/agent_audits_house`,
      data: data,
      method: 'POST'
  })
}



//获取经纪人房源列表
export function getbrokerhouselist(data) {
  return request.request({
      url: `/api/RoomSource/get_user_house_list`,
      data: data,
      method: 'POST'
  })
}


//获取经纪人房源列表
export function houselist(data) {
  return request.request({
      url: `/api/RoomSource/verify_house_list`,
      data: data,
      method: 'POST'
  })
}

//添加成交记录
export function addrecord(data) {
  return request.request({
      url: `/api/TransactionRoom/add_transact`,
      data: data,
      method: 'POST'
  })
}

//获取待审核交易记录列表
export function TransactionRecordList(data) {
  return request.request({
      url: `/api/TransactionRoom/get_transact_list`,
      data: data,
      method: 'POST'
  })
}

//获取待审核交易详情记录
export function particularsRecordList(data) {
  return request.request({
      url: `/api/TransactionRoom/get_transact_info`,
      data: data,
      method: 'POST'
  })
}

//审核交易记录
export function transactionrecord(data) {
  return request.request({
      url: `/api/TransactionRoom/examine_transaction`,
      data: data,
      method: 'POST'
  })
}



// 审核失败
export function getfailed(data) {
  return request.request({
      url: `/api/TransactionRoom/edit_transact`,
      data: data,
      method: 'POST'
  })
}




// 审核失败
export function usertransactionlist(data) {
  return request.request({
      url: `/api/TransactionRoom/user_transaction_list`,
      data: data,
      method: 'POST'
  })
}

// 二维码页面
export function geterweima(data) {
  return request.request({
      url: `/api/Passenger/follow_up_linfo`,
      data: data,
      method: 'POST'
  })
}

// 房子详情
export function gethouseparticulars(data) {
  return request.request({
      url: `/api/RoomSource/get_house_info`,
      data: data,
      method: 'POST'
  })
}

export function getannounce(data) {
  return request.request({
      url: `/api/RoomSource/open_house`,
      data: data,
      method: 'POST'
  })
}

export function gethomepagedata(data) {
  return request.request({
      url: `/api/Index/agent_index`,
      data: data,
      method: 'POST'
  })
}


export function getpublicpassenger(data) {
  return request.request({
      url: `/api/GongkePool/get_list`,
      data: data,
      method: 'POST'
  })
}

// 锁定客源
export function lockpassenger(data) {
  return request.request({
      url: `/api/GongkePool/add_locking`,
      data: data,
      method: 'POST'
  })
}

// 推入公客池
export function getpushout(data) {
  return request.request({
      url: `/api/GongkePool/delete_guard_users`,
      data: data,
      method: 'POST'
  })
}


// 客源跟进详情列表
export function getgenjin(data) {
  return request.request({
      url: `/api/GongkePool/get_guard_user`,
      data: data,
      method: 'POST'
  })
}


// 考试详情
export function gettestlist(data) {
  return request.request({
      url: `/api/Answer/get_answer_list`,
      data: data,
      method: 'POST'
  })
}

// 题目详情
export function getanswerinfo(data) {
  return request.request({
      url: `/api/Answer/get_answer_info`,
      data: data,
      method: 'POST'
  })
}

// 获取所有题目
export function getbuyquestion(data) {
  return request.request({
      url: `/api/Answer/get_buy_question`,
      data: data,
      method: 'POST'
  })
}

//获取对方用户头像和昵称
export function userHeader(data) {
  return request.request({
      url: `/api/index/get_user_open_info`,
      method: 'POST',
      data: data
  })
}


// 我的房东
export function myleader(data) {
  return request.request({
      url: `/api/RealTimeInfo/get_landlord_landlady`,
      method: 'POST',
      data: data
  })
}



// 提交答案
export function Submittheanswer(data) {
  return request.request({
      url: `/api/Answer/buy_question_result`,
      method: 'POST',
      data: data
  })
}


// 获取答案
export function Togettheanswer(data) {
  return request.request({
      url: `/api/Answer/get_already_answer_list`,
      method: 'POST',
      data: data
  })
}


export function getfilelist(data) {
  return request.request({
      url: `/api/Index/get_file_list`,
      method: 'POST',
      data: data
  })
}


export function getnewhouse(data) {
  return request.request({
      url: `/api/UserHouse/get_newfloor_info`,
      method: 'POST',
      data: data
  })
}


export function newHouseInfor(data) {
  return request.request({
      url: `/api/UserHouse/get_budilding_sale`,
      method: 'POST',
      data: data
  })
}

export function getanswerloginfo(data) {
  return request.request({
      url: `/api/Answer/get_answer_log_info`,
      method: 'POST',
      data: data
  })
}

